package com.yanqu.road.entity.manor;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.config.goods.GoodsInfo;

/**
 * @author ：zfr
 * @date ：2021/10/11 18:35
 */
public class FishPondSpecialItemData extends DataObject {
    private long userId;
    private int specialItemId;
    private long count;
    private boolean isReadSample;
    private boolean isGetUnLockReward;

    public FishPondSpecialItemData(long userId) {
        this.userId = userId;
    }

    public FishPondSpecialItemData() {
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getSpecialItemId() {
        return specialItemId;
    }

    public void setSpecialItemId(int specialItemId) {
        if (this.specialItemId != specialItemId) {
            this.specialItemId = specialItemId;
            setUpdateOption();
        }
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        if (this.count != count) {
            this.count = count;
            setUpdateOption();
        }
    }

    public boolean isReadSample() {
        return isReadSample;
    }

    public void setReadSample(boolean readSample) {
        if (isReadSample != readSample) {
            isReadSample = readSample;
            setUpdateOption();
        }
    }

    public void init(GoodsInfo goodsInfo) {
        specialItemId = goodsInfo.getGoodsId();
        setInsertOption();
    }

    public boolean isGetUnLockReward() {
        return isGetUnLockReward;
    }

    public void setGetUnLockReward(boolean getUnLockReward) {
        if (isGetUnLockReward != getUnLockReward) {
            isGetUnLockReward = getUnLockReward;
            setUpdateOption();
        }
    }
}
